package com.cugmarket.controller.order;

import com.cugmarket.dto.Result;
import com.cugmarket.service.ProductOrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;

@RestController
@RequestMapping("/user/order")
public class ProductOrderController {

    /**
     * 获取用户订单数据
     */
    @Autowired
    private  ProductOrderService productOrderService;
    @GetMapping("/self-data")
    public Result getUserOrderData(){
        HashMap<String,String> map = productOrderService.getUserOrderData();
        return Result.success(map);
    }
}
